#pragma once

#include <QObject>
#include <QThread>

class QThreadConsumer  : public QThread
{
	Q_OBJECT

public:
	QThreadConsumer(QObject* parent = nullptr);
	~QThreadConsumer();
	void stop();
protected:
	void run() override;
signals:
	void newValue(int diceValue);
private:
	bool m_stop;
};
